<dl id="upload_file_<%= upload_file.id %>">
  <dt><label for="upload_file[<%= upload_file.id %>]">文件描述:</label></dt>
  <dd><textarea class="inputbox" cols="35" rows="1" id="upload_file[<%= upload_file.id %>]" name="upload_file[<%= upload_file.id %>][comment]"></textarea></dd>
  <dd><a class="right" href="#"><%= upload_file.attachment.original_filename %></a></dd>
  <dd style="margin-top: 5px;">
  <input type="button" class="button2" onclick="attach_inline(<%= upload_file.id %>,'<%= upload_file.attachment.original_filename %>')" value="添加到帖子"/>
  <input type="submit" class="button2" value="删除" name="delete_file" onclick="deleteUploadFile(<%= upload_file.id %>)"/>
  </dd>
  <input type="hidden" value="<%= upload_file.id %>" name="upload_file[<%= upload_file.id %>][id]"/>
</dl>

